
#include <limits.h>
#include "student.h"
#include "teacher.h"
#include "gtest/gtest.h"
#include "include/rapidjson/writer.h"
#include "include/rapidjson/stringbuffer.h"
#include <iostream>

using namespace std;
using namespace rapidjson;

TEST(FactorialTest, Negative1) {

    Student s("aa", 10, 10000);

    StringBuffer sb;
    Writer<StringBuffer> writer(sb);



    Student s1("bb", 20, 20000);
    Student s2("cc", 30, 30000);
    Student s3("dd", 40, 40000);
    vector<Student> ss;
    ss.push_back(s);
    ss.push_back(s1);
    ss.push_back(s2);

    Teacher t("t1", 999, ss, s3);
    t.ParseToJson(writer);
    cout << sb.GetString() << endl;
}